import {lazy} from "react"

const routes=[
    {
        path:"/home",
        component:lazy(()=>import("../page/Home")),
        children:[
            {
                path:"/home/index",
                component:lazy(()=>import("../page/index/Index")),
            },
            {
                path:"/home/class",
                component:lazy(()=>import("../page/index/Class")),
            },
            {
                path:"/home/shop",
                component:lazy(()=>import("../page/index/Shop")),
            },
            {
                path:"/home/my",
                component:lazy(()=>import("../page/index/My")),
            },
            {
                from:"/home",
                to:"/home/index"
            }
        ]
    },
    {
        path:"/login",
        component:lazy(()=>import("../page/Login"))
    },
    {
        path:"/datelis/:id",
        component:lazy(()=>import("../page/Datelis"))
    },
    {
        path:"/lishi",
        component:lazy(()=>import("../page/Lishi"))
    },
    {
        from:"/",
        to:"/home"
    }
]

export default routes